package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("随访登记表")
@TablePlus(name = "dict_customer_visit")
public class DictCustomerVisit extends BaseModel {

    @Notes("客户id，外键")
    @ColumnPlus()
    @FKPlus(table = "dict_customer", column = "id")
    private Long customer_id;

    @Notes("客户名称")
    @ColumnPlus(default_val = "''", length = "20")
    private String customer_name;

    @Notes("商机id，外键")
    @ColumnPlus()
    @FKPlus(table = "dict_business", column = "id")
    private Long business_id;

    @Notes("商机名称")
    @ColumnPlus(default_val = "''", length = "20")
    private String business_name;

    @Notes("随访原因")
    @ColumnPlus(default_val = "''", length = "100")
    private String visit_reason;

    @Notes("随访情况")
    @ColumnPlus(default_val = "''", length = "200")
    private String visit_content;

    @Notes("所在精度")
    @ColumnPlus(default_val = "''", length = "50")
    private String longitude;

    @Notes("所在维度")
    @ColumnPlus(default_val = "''", length = "50")
    private String latitude;

    @Notes("所在位置")
    @ColumnPlus(default_val = "''", length = "200")
    private String location_info;

    @Notes("随访时间")
    @ColumnPlus()
    private Date visit_time;

}
